<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>registe.html</title>
	
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <link rel="stylesheet" type="text/css" href="css/style.css">

	<script type="text/javascript" src="js/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="js/reg.js"></script>
  </head>
  
  <body>
    <form action="login">
    	账号 <input type="text" name="username" onchange="checkUsername(this)"/>
    	<span>&nbsp;</span>
    	<span class="prom">由数字、字母、下划线组成，长度不能小于6位</span>
    	<br/>
    	密码 <input type="password" name="password" onchange="checkPassword(this)"/>
    	<span>&nbsp;</span>
    	<span class="prom">由6位上的数字、字母组成</span>
    	<br/>
    	确认密码 <input type="password" name="password" onchange="checkConfirm(this)"/>
    	<span>&nbsp;</span>
    	<span class="prom">与上面的密码相同</span>
    	<br/>
    	
    	<!-- 1.使用submit按钮，添加Onclick事件,如果返回true,自动提交表单，返回false，不提交表单 
    	<input type="submit" value="注册" onclick="return checkSbt()"/>-->
    	
    	<!-- 2.使用button按钮，添加onclick事件，确定数据都正确后，手动提交表单 -->
    	<input type="button" value="注册" onclick="checkBtn()"/>
    </form>
  </body>
</html>
